//  这是personal的reducer
import * as TYPES from '../action-types'
const initVal = {
    num: 100,
    info: null
}

export default function personalReducer(state = initVal, action) {
    // 克隆一份
    state = { ...state }

    switch (action.type) {
        case TYPES.PERSONAL_INFO:
            state.info = {}
            break
        case TYPES.PERSONAL_SUP:
            state.info = action.payload.a
            break
        default:
    }

    return state
}
